home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3c / regex_bsd.z / regex_bsd
Encoding:
Text File  |  2002-10-03  |  2.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4. RRRREEEEGGGGEEEEXXXX((((3333BBBB))))                                                            RRRREEEEGGGGEEEEXXXX((((3333BBBB))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      re_comp, re_exec - regular expression handler
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee uuuunnnniiiissssttttdddd....hhhh
  13.  
  14.      cccchhhhaaaarrrr ****rrrreeee____ccccoooommmmpppp((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****ssss))));;;;
  15.  
  16.      iiiinnnntttt rrrreeee____eeeexxxxeeeecccc((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****ssss))));;;;
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      _R_e__c_o_m_p compiles a string into an internal form suitable for pattern
  20.      matching. _R_e__e_x_e_c checks the argument string against the last string
  21.      passed to _r_e__c_o_m_p.
  22.  
  23.      _R_e__c_o_m_p returns 0 if the string _s was compiled successfully; otherwise a
  24.      string containing an error message is returned. If _r_e__c_o_m_p is passed 0 or
  25.      a null string, it returns without changing the currently compiled regular
  26.      expression.
  27.  
  28.      _R_e__e_x_e_c returns 1 if the string _s matches the last compiled regular
  29.      expression, 0 if the string _s failed to match the last compiled regular
  30.      expression, and -1 if the compiled regular expression was invalid
  31.      (indicating an internal error).
  32.  
  33.      The strings passed to both _r_e__c_o_m_p and _r_e__e_x_e_c may have trailing or
  34.      embedded newline characters; they are terminated by nulls.  The regular
  35.      expressions recognized are described in the manual entry for _e_d(1), given
  36.      the above difference.  However, _r_e__c_o_m_p does not handle range regular
  37.      expressions (\{_m,_n\}) supported by _e_d(1) and _r_e_g_c_m_p(3G).
  38.  
  39. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  40.      _R_e__e_x_e_c returns -1 for an internal error.
  41.  
  42.      _R_e__c_o_m_p returns one of the following strings if an error occurs:
  43.  
  44.           No previous regular expression
  45.           Regular expression too long
  46.           unmatched \(
  47.           missing ]
  48.           too many \(\) pairs
  49.           unmatched \)
  50.  
  51. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  52.      ed(1), ex(1), egrep(1), fgrep(1), grep(1), regcmp(3G).
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.